//
//  MyschemeCell.m
//  liangyi
//
//  Created by 张水 on 16/12/20.
//  Copyright © 2016年 yswh. All rights reserved.
//

#import "MyschemeCell.h"

@implementation MyschemeCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

-(void)setMyModel:(MyschemeModel *)MyModel{
    _MyModel = MyModel;
    self.section.text = MyModel.title;
    self.sectionDes.text = [NSString stringWithFormat:@"术后%@天,%@",MyModel.operationDay,MyModel.content];
}

- (void)setupUI{
    
    self.backgroundColor = [UIColor whiteColor];
    
    self.section = [[UILabel alloc]init];
    [self.contentView addSubview:self.section];
    [self.section mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.left.equalTo(self.contentView).offset(20);
    }];
    self.section.textColor = [UIColor ColorWithHex:@"#686868"];
    self.section.font = [UIFont systemFontOfSize:15];

    
    
    self.sectionDes = [[UILabel alloc]init];
    [self.contentView addSubview:self.sectionDes];
    [self.sectionDes mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.left.equalTo(self.section.mas_right).offset(10);
    }];
    self.sectionDes.textColor = [UIColor ColorWithHex:@"#686868"];
    self.sectionDes.font = [UIFont systemFontOfSize:15];
    
    
//    self.Isfinish = [[UIImageView alloc]init];
//    [self.contentView addSubview:self.Isfinish];
//    [self.Isfinish mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerY.equalTo(self.contentView.mas_centerY);
//        make.right.equalTo(self.contentView).offset(-20);
//        make.width.height.equalTo(@30);
//    }];
    
}

//-(void)loadModel:(MyschemeModel *)model{
//        self.section.text = model.title;
//        self.sectionDes.text = [NSString stringWithFormat:@"术后%@天,%@",model.operationDay,model.content];
//}

- (void)layoutSubviews{
    [super layoutSubviews];
    
}
@end
